package com.sdy.approval.biz.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 流程配置
 * </p>
 *
 * @author cgj
 * @since 2019-08-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class TpApproveFlowConfig extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    private Integer id;

    /**
     * 流程id
     */
    private Integer flowId;

    /**
     * 流程配置编码
     */
    private String resId;

    /**
     * 当前环节
     */
    private Integer currentFlowLink;

    /**
     * 审核部门id
     */
    private Integer auditDepartmentId;

    /**
     * 审核角色id
     */
    private Integer auditRoleId;

    /**
     * 下个流程节点id
     */
    private Integer nextFlowNode;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date createTime;

}
